Skip to content

Add bounded Matrix evaluation and immutable shell sessions - #16

Merged
bytetroll merged 5 commits into
codex/nildatafrom
codex/matrix-shell-profile
Oct 29, 2026
Merged

bytetroll merged 5 commits into
codex/nildatafrom
codex/matrix-shell-profile

Conversation

@bytetroll

@bytetroll bytetroll commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Matrix submissions can now be checked and evaluated without a book/paragraph wrapper. nilcompiler --matrix-shell provides an interactive session with immutable retained bindings, readable terminal results, and JSON records for piped clients. The same session API accepts Matrix source and versioned NILData requests.

Both inputs use the shared AST/type checker and independent pure-profile checks before entering the existing VM. Retained values are owned typed snapshots, restored as literal data for the next submission. Earlier computations are never replayed, and new bindings publish together only after execution, snapshot export, restoration checks, and result projection succeed. Failures and cancellation preserve the previous session.

Execution has instruction, work, text, snapshot, state, report, and cooperative deadline limits. Calls, imports, mutation, host commands, and native submission execution remain outside this profile. The deadline begins after compilation/loading; these limits are not OS resource isolation. The design and user documentation describe these boundaries and the remaining Anomalous integration work.

This also fixes exponential nested-generic resolution in the shared type checker and protects shell input boundaries: command-like lines inside raw text remain literal, and oversized submissions cannot execute their remaining lines separately.

Validation: LLVM-enabled Release build; full CTest suite (522 passed, optional PostgreSQL integration skipped); focused admission/session regressions; manual terminal checks for typed values, retained bindings, and rollback; repository policy and whitespace checks. New regressions cover VM budgets and cancellation, owned snapshots, source/request binding lookup, exact scalar types, nested arrays, atomic publication, malformed inputs, and shell recovery.

Stacked on #15 (codex/nildata).

@bytetroll bytetroll changed the title Define a Matrix shell profile for Anomalous Add pure Matrix submission checking for the shell foundation Oct 27, 2026
@bytetroll bytetroll changed the title Add pure Matrix submission checking for the shell foundation Add bounded Matrix evaluation and immutable shell sessions Oct 27, 2026
@bytetroll
bytetroll merged commit aa40590 into codex/nildata Oct 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant